data "aws_iam_user" "user1" {
  user_name = "root" 
}


module "iam_role_prod" {
  source      = "../../modules/iam_role"
  environment = "prod"
  policy_arns = ["arn:aws:iam::aws:policy/AdministratorAccess", "arn:aws:iam::aws:policy/AWSBillingReadOnlyAccess"]
  user_arn    = data.aws_iam_user.user1.arn
}

module "iam_role_dev" {
  source      = "../../modules/iam_role"
  environment = "dev"
  policy_arns = ["arn:aws:iam::aws:policy/PowerUserAccess"]
  user_arn    = data.aws_iam_user.user1.arn
}

module "iam_role_stg" {
  source      = "../../modules/iam_role"
  environment = "stg"
  policy_arns = ["arn:aws:iam::aws:policy/ReadOnlyAccess"]
  user_arn    = data.aws_iam_user.user1.arn
}

